package com.hmall.model;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

@Table(name = "sys_question")
public class SysQuestion {
    @Id
    private Integer id;

    @Column(name = "question_name")
    private String questionName;

    @Column(name = "answer_id")
    private String answerId;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "update_time")
    private Date updateTime;

    /**
     * 1:单选  2:多选
     */
    private Integer type;

    /**
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * @return question_name
     */
    public String getQuestionName() {
        return questionName;
    }

    /**
     * @param questionName
     */
    public void setQuestionName(String questionName) {
        this.questionName = questionName;
    }

    /**
     * @return answer_id
     */
    public String getAnswerId() {
        return answerId;
    }

    /**
     * @param answerId
     */
    public void setAnswerId(String answerId) {
        this.answerId = answerId;
    }

    /**
     * @return create_time
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    /**
     * @return update_time
     */
    public Date getUpdateTime() {
        return updateTime;
    }

    /**
     * @param updateTime
     */
    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 获取1:单选  2:多选
     *
     * @return type - 1:单选  2:多选
     */
    public Integer getType() {
        return type;
    }

    /**
     * 设置1:单选  2:多选
     *
     * @param type 1:单选  2:多选
     */
    public void setType(Integer type) {
        this.type = type;
    }
}